export function sleep(duration) {
    return new Promise((resolve => {
        setTimeout(() => {
            resolve();
        }, duration);
    }));
}
